<!--[pnajaxheader modname="crpVideo" nobehaviour=true noscriptaculous=true]-->
<!--[include file="crpvideo_admin_menu.htm"]-->

<!--[pnml name=_CRPVIDEO_VIDEO assign=itemname]-->
<!--[pnml name="_UPDATEITEM" i=$itemname assign=templatetitle]-->
<div class="pn-admincontainer">
<div class="pn-adminpageicon"><!--[pnimg modname=core src=edit.gif set=icons/large alt=$templatetitle]--></div>
<h2><!--[$templatetitle]--></h2>
<!--[pnml name="_CRPVIDEO_REQUIRED"]--> <!--[pnml name="_CRPVIDEO_REQUIRED_EXT"]-->
<form class="pn-adminform" action="<!--[pnmodurl modname="crpVideo" type="admin" func="update"]-->" method="post" enctype="multipart/form-data">
<div>
	<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="crpVideo"]-->" />
	<input type="hidden" name="video[videoid]" value="<!--[$videoid|pnvarprepfordisplay]-->" />
    <fieldset>
      <legend><!--[pnml name=_CONTENT]--></legend>
	    <div class="pn-adminformrow">
    		<label for="video_title"><!--[pnml name="_TITLE"]--> <!--[pnml name="_CRPVIDEO_REQUIRED"]--></label>
    		<input id="video_title" name="video[title]" type="text" size="32" maxlength="255" value="<!--[$title|pnvarprephtmldisplay]-->" />
	    </div>
		<div class="pn-adminformrow">
			<label for="video_urltitle"><!--[pnml name="_PERMALINKTITLE"]--></label>
			<input id="video_urltitle" name="video[urltitle]" type="text" size="32" maxlength="255" value="<!--[$urltitle|pnvarprepfordisplay]-->" />
			<!--[pnml name=_PERMALINKTITLEBLANK]-->
		</div>
		<div class="pn-adminformrow">
       <label for="video_author"><!--[pnml name="_CRPVIDEO_AUTHOR"]--> <!--[pnml name="_CRPVIDEO_REQUIRED"]--></label>
       <input id="video_author" name="video[author]" type="text" size="32" maxlength="255" value="<!--[$author|pnvarprepfordisplay]-->"/>
	  </div>
	  <div class="pn-adminformrow">
			<label for="crpvideo_image"><!--[pnml name="_CRPVIDEO_IMAGE"]--> <!--[pnmodgetvar module=crpVideo name=cover_dimension]--> bytes</label>
			<input id="crpvideo_image" name="video_image" type="file" size="32"/>
			<!--[pnml name="_CRPVIDEO_IMAGE_RESIZE"]--> <!--[pnmodgetvar module=crpVideo name=image_width]--> px
		</div>
		<!--[if $image.id]-->
		<div class="pn-adminformrow">
			<label for="crpvideo_event_image_desc"><!--[pnml name="_CRPVIDEO_CURRENT_FILE" html=1]-->:</label>
			<div id="crpvideo_event_image_desc">
				<span class="pn-normal" style="font-weight: bold;"><!--[$image.name|pnvarprepfordisplay]--></span>
				&nbsp;(<!--[$image.content_type]-->)&nbsp;
				<!--[$image.size]--> bytes -
				<a href="<!--[pnmodurl modname="crpVideo" type="user" func="get_image" videoid=$videoid]-->" title="<!--[$title]-->" rel="lightbox">
				<!--[pnml name="_VIEW"]--></a>
				<a href="<!--[pnmodurl modname="crpVideo" type="admin" func="delete_image" file_type="image" videoid=$videoid]-->" title="<!--[$title]-->">
				<!--[pnml name="_DELETE"]--></a>
			</div>
		</div>
		<!--[/if]-->
		<div class="pn-adminformrow">
	    <label for="crpvideo_file"><!--[pnml name="_CRPVIDEO_FILE"]--> <!--[pnmodgetvar module=crpVideo name=file_dimension]--> bytes</label>
	    <input type="radio" name="video[source]" value="video" id="videosource"<!--[if $source eq 'video']--> checked="checked"<!--[/if]-->/>
			<input type="hidden" name="MAX_FILE_SIZE" value="<!--[pnmodgetvar module=crpVideo name=file_dimension]-->"/>
			<input id="crpvideo_file" name="video_file" type="file" size="32"/>
	  </div>
	  <div class="pn-adminformrow">
      <label for="video_file"><!--[pnml name="_CRPVIDEO_CURRENT_FILE"]--></label>
      <span class="pn-normal" style="font-weight: bold;"><!--[$urlvideo|pnvarprepfordisplay]--></span>
			<!--[pnml name=_CRPVIDEO_FILEBLANK]-->
	  </div>
	  <div class="pn-adminformrow">
	  	<label for="video_external"><!--[pnml name="_CRPVIDEO_EXTERNAL"]--></label>
	  	<input type="radio" name="video[source]" value="external" id="videosource"<!--[if $source eq 'external']--> checked="checked"<!--[/if]-->/>
	    <input id="video_external" name="video[external]" type="text" size="32" maxlength="255" value="<!--[$external|pnvarprepfordisplay]-->"/>
	  </div>
		<!--[if $enablecategorization]-->
		<div class="pn-adminformrow">
			<label for="video_category_cat_val"><!--[pnml name="_CATEGORY"]--> <!--[pnml name="_CRPVIDEO_REQUIRED"]--></label>
			<!--[ pnml assign="lblDef" name="_CHOOSECATEGORY" ]-->
			<!--[ selector_category category=$mainCategory name="video[__CATEGORIES__][Main]" field="id" selectedValue=$__CATEGORIES__.Main.id defaultValue="0" defaultText="$lblDef" ]-->
		</div>
		<!--[/if]-->
    	<div class="pn-adminformrow">
		    <label for="video_language"><!--[pnml name="_LANGUAGE"]--></label>
    		<!--[html_select_languages id=video_language name=video[language] all=true installed=true selected=$language]-->
	    </div>
    	<div class="pn-adminformrow">
		    <label for="video_displaywrapper"><!--[pnml name="_CRPVIDEO_DISPLAYWRAPPER"]--></label>
            <input id="video_displaywrapper" type="checkbox" name="video[displaywrapper]" value="1"<!--[if $displaywrapper]--> checked="checked"<!--[/if]--> />
    	</div>
    	<div class="pn-adminformrow">
		    <label for="video_content"><!--[pnml name="_CONTENT"]--> <!--[pnml name="_CRPVIDEO_REQUIRED"]--></label>
    		<textarea id="video_content" name="video[content]" rows="10" cols="50"><!--[$content|pnvarprepfordisplay]--></textarea>
	    </div>
	    <div class="pn-adminformrow">
				<label for="crpvideo_event_status"><!--[pnml name="_CRPVIDEO_STATUS"]--></label>
				<select id="crpvideo_event_status" name="video[obj_status]">
					<option value="A"<!--[if $obj_status eq 'A']--> selected="selected"<!--[/if]-->><!--[pnml name="_ACTIVE"]--></option>
					<option value="P"<!--[if $obj_status eq 'P']--> selected="selected"<!--[/if]-->><!--[pnml name="_CRPVIDEO_PENDING"]--></option>
					<option value="R"<!--[if $obj_status eq 'R']--> selected="selected"<!--[/if]-->><!--[pnml name="_CRPVIDEO_REJECTED"]--></option>
				</select>
			</div>
    </fieldset>
    <fieldset>
        <legend><!--[pnml name=_META]--></legend>
		<ul>
			<!--[pnusergetvar name=uname uid=$cr_uid assign=username]-->
			<li><!--[pnml name=_CREATEDBY username=$username]--></li>
			<li><!--[pnml name=_CREATEDON date=$cr_date|pndate_format]--></li>
			<!--[pnusergetvar name=uname uid=$lu_uid assign=username]-->
			<li><!--[pnml name=_UPDATEDBY username=$username]--></li>
			<li><!--[pnml name=_UPDATEDON date=$lu_date|pndate_format]--></li>
		</ul>
    </fieldset>
	<!--[pnmodcallhooks hookobject=item hookaction=modify hookid=$videoid module=crpVideo]-->
    <div class="pn-adminformrow pn-adminformbuttons">
    <a href="<!--[pnmodurl modname=crpVideo type=admin func=view]-->"><!--[pnimg modname=core src=button_cancel.gif set=icons/small altml=true titleml=true alt="_CANCEL" title="_CANCEL"]--></a>
    <!--[pnbutton src=button_ok.gif set=icons/small alt="_UPDATE" title="_UPDATE"]-->
    </div>
</div>
</form>
</div>